// const http=require(`http`)
const express = require( 'express' )
const logger =require('morgan');
const userRouter = require('./routes/userRouter');
const app = express();
app.use( express.static( __dirname + "/public" ) )
app.use(logger('dev'))
app.use("/",userRouter)
app.listen( 8888, () => {
    console.log( '服务器运行中， 点击 http://127.0.0.1:8888 访问' )
  } )
  